package com.zyguo.thread;

public class SearchRunnable implements Runnable{
	private int sleepTime;
	public SearchRunnable( int sleepTime ){
		this.sleepTime = sleepTime;
	}
	
	@Override
	public void run() {
		try {
			System.out.println( Thread.currentThread() + " begin search "  );
			Thread.sleep( sleepTime );
			System.out.println( Thread.currentThread() + " end search, 耗时 " + this.sleepTime );
		} catch (InterruptedException e) {
			System.out.println( Thread.currentThread() + " 被中断 "  );
			//e.printStackTrace();
		}
	}
	
	
}
